import React, { Component } from 'react';
import {Link} from 'react-router-dom';
class Main extends Component {
    render() {
        return (
            <div>
                this is a Main Component
                <Link to="/main/1">嵌套路由链接1</Link>
                <Link to="/main/test">嵌套路由链接2</Link>
                {this.props.children}
            </div>
        );
    }
}

export default Main;